import "../layout.html";
import "../css/ui.css";

var mainApp = angular.module("webApp",['ui.router'])
mainApp.config(function ($stateProvider,$urlRouterProvider) {
    $stateProvider
        .state('Index',{url:'/index', template:"首页-控制台",})
        .state('Template',{url:'/mission/template', template:"任务管理-任务模板",})
        $urlRouterProvider.otherwise('/index');
})
.run(function ($rootScope, $state, $stateParams) {
    $.extend($rootScope,{
        goIndex             : function(){$state.go("Index")},
        goTemplate          : function () {$state.go("Template")}
    })
})
.factory("Service",function ($http) {
    var Service = {
        Resource:function (url,param) {
            var dfd = $.Deferred();
            $http({method:"POST",url:url,data:param})
            //line 334
        }
    }
})

